﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using System.Text;

namespace PageAdmin.Utils
{

    /// <summary>
    /// 邮箱参数设置类
    /// </summary>
    public class EmailSetting
    {
        /// <summary>
        /// 发件箱地址
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 发件箱名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 发件箱密码
        /// </summary>
        public string PassWord { get; set; }

        /// <summary>
        /// smtp服务器地址 如：smtp.qq.com
        /// </summary>
        public string Host { get; set; }

        /// <summary>
        /// 邮箱端口
        /// </summary>
        public int Port { get; set; } = 25;

        /// <summary>
        /// 是否加密链接
        /// </summary>
        public bool EnableSsl { get; set; } = false;

        /// <summary>
        /// 收件箱地址
        /// </summary>
        public string MailTo { get; set; }

        /// <summary>
        /// 邮件标题
        /// </summary>
        public string MailSubject { get; set; }

        /// <summary>
        /// 邮件内容
        /// </summary>
        public string MailBody { get; set; }

        /// <summary>
        /// 邮件回复
        /// </summary>
        public string MailReply { get; set; }

        /// <summary>
        /// 邮件抄送
        /// </summary>
        public string MailCC { get; set; }

        /// <summary>
        /// 邮件附件组
        /// </summary>
        public IEnumerable<string> Attachments { get; set; }

    }
}